package com.algorithm.code.hash;

/**
 * @description TODO
 * @program: sudy
 * @author: kukuxiahuni
 * @create: 2020-01-23 19:45
 **/
public interface LRUAlgorithm<K, V> {

    /**
     * @Description: 添加一个元素
     * @Param:
     * @return:
     * @Author: kukuxiahuni
     * @Date: 2020/1/23
     */
    void add(K key, V value);

    /**
     * @Description: 删除一个元素
     * @Param:
     * @return:
     * @Author: kukuxiahuni
     * @Date: 2020/1/23
     */
    void delete(K key);

    /**
    * @Description: 根据ｋｅｙ获取值
    * @Param: 
    * @return: 
    * @Author: kukuxiahuni
    * @Date: 2020/1/23
    */
    V get(K key);


}
